package com.example.order_system.mapper;

import com.example.order_system.model.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    // 下单功能
    void addOrder(Order order);

    // 订单表
    List<Order> orderList(String uid);

    // 修改订单状态
    int updateOrder(Integer oid, Integer state);
}
